import { Response } from 'express'

export const successResponse = (res: Response, data: any = null, message: string = 'Success') => {
  return res.status(200).json({
    status: 'success',
    message,
    data,
  })
}

export const errorResponse = (res: Response, statusCode: number, message: string) => {
  return res.status(statusCode).json({
    status: 'error',
    message,
  })
}
